<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>配置表 编辑页面</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <jsp:include page="../com/header.jsp"></jsp:include>
    <script type="text/javascript" src="../../js/comm/editcomm.js"></script>
    <script type="text/javascript">
        $(function () {
            getDataById(root + 'cms/configurationTable/findConfigurationTableById', "#configurationTableTmpl", "#configurationTableContent");
            $("#saveOrupdate").click(function () {
                saveData(root + 'cms/configurationTable/saveConfigurationTable', 'configurationTableList.jsp');
            });
        });
    </script>
</head>
<body>
<section>
    <div>
        <div class="col-xs-12">
            <div class="box" style="height:900px">
                <div class="box-header">
                    <br>
                    <input type="button" value="确定" id="saveOrupdate" class="btn btn-success">
                    <input type="button" onclick="backAction('configurationTableList.jsp');" class="btn btn-info"
                           value="返回"/>
                </div>
                <form id="submit_form" class="form-horizontal">
                    <div class="tab" id="configurationTableContent">
                    </div>
                </form>
            </div>
        </div>
</section>
<script type="text/x-jsrender" id="configurationTableTmpl">
			<fieldset> 
				<input type="hidden" id="tId" name="id" value="{{:id}}" />
	        	{{!--<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">图片：</label>
       				 <div class="col-md-3">
						<div class="upload_div">
                        	<img id="myImageShow" src="../../{{:imgUrl}}" width="100px" height="100px" />
                        	<input type="hidden" id="imgUrl" name="imgUrl" value="{{:imgUrl}}"/>
                        	<input type="file" id="uploadPhotoFile" name="photoFile" class="upload_file">
                        </div>
					</div>
      			</div>--}}
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">抽奖所需亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写每次抽奖需要的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="signin_lottery_coin_per" name="signin_lottery_coin_per" value="{{:signin_lottery_coin_per}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">中奖率分母：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="中奖率的分母；eg:1：100%中奖，5：20%中奖" class="form-control input-sm" maxLength="10" data-rule="required;length[0~10];plus" id="signin_winningRate" name="signin_winningRate" value="{{:signin_winningRate}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">亲币兑换（1RMB）：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写多少亲币兑换1RMB" class="form-control input-sm" data-rule="required;length[0~50];plus" id="signin_inance_expr_coin" name="signin_inance_expr_coin" value="{{:signin_inance_expr_coin}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">首签获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写每天首次签到赚钱的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_signin_coin" name="income_expenses_signin_coin" value="{{:income_expenses_signin_coin}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">注册送亲币数：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写注册需送亲币数" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_register_coin" name="income_register_coin" value="{{:income_register_coin}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">推荐他人送亲币数：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写推荐他人需送亲币数" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_recommend_coin" name="income_recommend_coin" value="{{:income_recommend_coin}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">做任务获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写每次做任务奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_task_coin" name="income_expenses_task_coin" value="{{:income_expenses_task_coin}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">连续签到等差递增亲币数量：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写连续签到等差递增亲币数量 class="form-control input-sm" data-rule="required;length[0~50]" id="income_expenses_signin_asc_coin" name="income_expenses_signin_asc_coin" value="{{:income_expenses_signin_asc_coin}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">分享获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写分享奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_share_coin" name="income_expenses_share_coin" value="{{:income_expenses_share_coin}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">留言获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写留奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_LeaveMessage_coin" name="income_expenses_LeaveMessage_coin" value="{{:income_expenses_LeaveMessage_coin}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">义工获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写义工经历奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_nurseExperience_coin" name="income_expenses_nurseExperience_coin" value="{{:income_expenses_nurseExperience_coin}}" />
					</div>
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">抽奖任务奖励亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写每次抽奖任务额外奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_lottery_task_coin" name="income_expenses_lottery_task_coin" value="{{:income_expenses_lottery_task_coin}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">看视频获取的亲币/s：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写观看视频每秒钟获取的亲币" class="form-control input-sm" data-rule="required;length[0~50];starWeigt" id="income_expenses_watch_viedo_coin" name="income_expenses_watch_viedo_coin" value="{{:income_expenses_watch_viedo_coin}}" />
					</div>
					<label class="col-md-2 control-label controls" for="formGroupInputSmall">评论获亲币：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写评论奖励的亲币" class="form-control input-sm" data-rule="required;length[0~50];plus" id="income_expenses_commet_coin" name="income_expenses_commet_coin" value="{{:income_expenses_commet_coin}}" />
					</div>
      			</div>

				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">一级分销比例：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写一级分销比例" class="form-control input-sm" data-rule="required;length[0~50];plusnums1" id="distribution1Rate" name="distribution1Rate" value="{{:distribution1Rate}}" />
					</div>
					<label class="col-md-2 control-label controls" for="formGroupInputSmall">二级分销比例：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写二级分销比例" class="form-control input-sm" data-rule="required;length[0~50];plusnums1" id="distribution2Rate" name="distribution2Rate" value="{{:distribution2Rate}}" />
					</div>
      			</div>

      			<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">公司地址：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写公司地址" class="form-control input-sm" data-rule="required;length[0~2000]" id="cmp_address" name="cmp_address" value="{{:cmp_address}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">公司电话：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写公司电话" class="form-control input-sm" data-rule="required;length[0~50];" id="cmp_cellPhone" name="cmp_cellPhone" value="{{:cmp_cellPhone}}" />
					</div>
      			</div>
      			<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">客服电话：</label>
       				 <div class="col-md-3">
						<input type="text" placeholder="请填写客服电话" class="form-control input-sm" data-rule="required;length[0~50];" id="serviceTel" name="serviceTel" value="{{:serviceTel}}" />
					</div>
      			</div>
				<div class="form-group">
        			<label class="col-md-2 control-label controls" for="formGroupInputSmall">公司简介：</label>
					<div class="col-md-4">
       				   	<textarea class="form-control" id="cmp_intro" name="cmp_intro" value="{{:cmp_intro}}" rows="15"  data-rule="required;length[1~5000];" style="resize:none;width:760px">{{:cmp_intro}}</textarea>
					</div>
      			</div>
			</fieldset>

</script>
</body>
</html>